import { getRequest, postRequest } from '@/plugins/requestConfig'
import { useUserStore } from '@/store/userStore'

export const getUser = (params) => {
  return getRequest('/user/list/page', params)
}

export const getShopList = (params) => {
  return getRequest('/shopDetail/list', params)
}

export const getShop = (id, params) => {
  return getRequest(`/shopDetail/get/${id}`, params)
}

export const pushWechat = (params) => {
  return getRequest('/weChat/push', params)
}

export const userLogin = (params) => {
  return postRequest('/user/login', params)
}

export const userLogout = (params) => {
  return postRequest('/user/logout', params)
}

export const getLoginUser=(params)=>{
  return getRequest('/user/get/login',params)
}
